<template>
  <div>
    <transition name="zlq">
      <footerNav v-show="isShow" />
    </transition>
    <router-view />
  </div>
</template>

<script>
import FooterNav from "@/components/FooterNav";
export default {
  data(){
    return {
      isShow: true,
    };
  },
   components: {
    FooterNav,
  },
  created() {
    this.isShow = true;
    // 订阅让底部菜单 隐藏或显示功能
    this.$eventBus.$on("hideMenu", (v) => {
      this.isShow = v;
    });
  },
};
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
html,
body {
  touch-action: none;
  height: 100%;
  ul,
  li {
    list-style: none;
   
  }
}
.zlq-enter-active, .zlq-leave-active {
  transition: opacity .5s;
}
.zlq-enter, .zlq-leave-to {
  opacity: 0;
}
</style>
